package com.jxdinfo.hussar.example.common.core.domain.entity;

import com.jxdinfo.hussar.example.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 部门表 sys_dept
 *
 * @author ruoyi
 */
public class SysDeptqqb
{
    private static final long serialVersionUID = 1L;

    /** 机构编码 */
    private Long STRU_ID;

    /** 机构类型 */
    private String STRU_TYPE;

    /** 组织编码 */
    private Long ORGAN_ID;

    /** 组织别名 */
    private String ORGAN_ALIAS;

    /** 上级机构编码 */
    private Long PARENT_ID;

    /** 负责人组织编码 */
    private Long PRINCIPAL_ID;

    /** 所属法人组织编码 */
    private String CORPORATION_ID;

    /** 级别 */
    private int STRU_LEVEL;

    /** 全主键ID */
    private String STRU_FID;

    /** 全排序编号 */
    private String STRU_SEQ;

    /** 树形编码 */
    private String STRU_PATH;

    /** 成员局部排序值 */
    private int STRU_ORDER;

    /** 成员全局排序值 */
    private int GLOBAL_ORDER;

    /** 是否是叶子节点 */
    private String IS_LEAF;

    /** 使用标识 */
    private String DEL_FLAG;

    /** 所属部门组织编码 */
    private String DEPARTMENT_ID;

    /** 所属权限组织编码 */
    private Long PERMISSION_STRU_ID;

    /** 行政区代码 */
    private String PROVINCE_CODE;

    /** 创建者 */
    private Long CREATOR;

    /** 创建时间 */
    private Date CREATE_TIME;

    /** 上次编辑者 */
    private Long LAST_EDITOR;

    /** 上次编辑时间 */
    private Date LAST_TIME;

    /** 是否为职工 */
    private String IS_EMPLOYEE;

    /** 职务编码 */
    private String STAFF_POSITION;

    /** 子部门 */
    private List<SysDeptqqb> children = new ArrayList<SysDeptqqb>();

    public Long getSTRU_ID() {
        return STRU_ID;
    }

    public void setSTRU_ID(Long STRU_ID) {
        this.STRU_ID = STRU_ID;
    }

    public String getSTRU_TYPE() {
        return STRU_TYPE;
    }

    public void setSTRU_TYPE(String STRU_TYPE) {
        this.STRU_TYPE = STRU_TYPE;
    }

    public Long getORGAN_ID() {
        return ORGAN_ID;
    }

    public void setORGAN_ID(Long ORGAN_ID) {
        this.ORGAN_ID = ORGAN_ID;
    }

    public String getORGAN_ALIAS() {
        return ORGAN_ALIAS;
    }

    public void setORGAN_ALIAS(String ORGAN_ALIAS) {
        this.ORGAN_ALIAS = ORGAN_ALIAS;
    }

    public Long getPARENT_ID() {
        return PARENT_ID;
    }

    public void setPARENT_ID(Long PARENT_ID) {
        this.PARENT_ID = PARENT_ID;
    }

    public Long getPRINCIPAL_ID() {
        return PRINCIPAL_ID;
    }

    public void setPRINCIPAL_ID(Long PRINCIPAL_ID) {
        this.PRINCIPAL_ID = PRINCIPAL_ID;
    }

    public String getCORPORATION_ID() {
        return CORPORATION_ID;
    }

    public void setCORPORATION_ID(String CORPORATION_ID) {
        this.CORPORATION_ID = CORPORATION_ID;
    }

    public int getSTRU_LEVEL() {
        return STRU_LEVEL;
    }

    public void setSTRU_LEVEL(int STRU_LEVEL) {
        this.STRU_LEVEL = STRU_LEVEL;
    }

    public String getSTRU_FID() {
        return STRU_FID;
    }

    public void setSTRU_FID(String STRU_FID) {
        this.STRU_FID = STRU_FID;
    }

    public String getSTRU_SEQ() {
        return STRU_SEQ;
    }

    public void setSTRU_SEQ(String STRU_SEQ) {
        this.STRU_SEQ = STRU_SEQ;
    }

    public String getSTRU_PATH() {
        return STRU_PATH;
    }

    public void setSTRU_PATH(String STRU_PATH) {
        this.STRU_PATH = STRU_PATH;
    }

    public int getSTRU_ORDER() {
        return STRU_ORDER;
    }

    public void setSTRU_ORDER(int STRU_ORDER) {
        this.STRU_ORDER = STRU_ORDER;
    }

    public int getGLOBAL_ORDER() {
        return GLOBAL_ORDER;
    }

    public void setGLOBAL_ORDER(int GLOBAL_ORDER) {
        this.GLOBAL_ORDER = GLOBAL_ORDER;
    }

    public String getIS_LEAF() {
        return IS_LEAF;
    }

    public void setIS_LEAF(String IS_LEAF) {
        this.IS_LEAF = IS_LEAF;
    }

    public String getDEL_FLAG() {
        return DEL_FLAG;
    }

    public void setDEL_FLAG(String DEL_FLAG) {
        this.DEL_FLAG = DEL_FLAG;
    }

    public String getDEPARTMENT_ID() {
        return DEPARTMENT_ID;
    }

    public void setDEPARTMENT_ID(String DEPARTMENT_ID) {
        this.DEPARTMENT_ID = DEPARTMENT_ID;
    }

    public Long getPERMISSION_STRU_ID() {
        return PERMISSION_STRU_ID;
    }

    public void setPERMISSION_STRU_ID(Long PERMISSION_STRU_ID) {
        this.PERMISSION_STRU_ID = PERMISSION_STRU_ID;
    }

    public String getPROVINCE_CODE() {
        return PROVINCE_CODE;
    }

    public void setPROVINCE_CODE(String PROVINCE_CODE) {
        this.PROVINCE_CODE = PROVINCE_CODE;
    }

    public Long getCREATOR() {
        return CREATOR;
    }

    public void setCREATOR(Long CREATOR) {
        this.CREATOR = CREATOR;
    }

    public Date getCREATE_TIME() {
        return CREATE_TIME;
    }

    public void setCREATE_TIME(Date CREATE_TIME) {
        this.CREATE_TIME = CREATE_TIME;
    }

    public Long getLAST_EDITOR() {
        return LAST_EDITOR;
    }

    public void setLAST_EDITOR(Long LAST_EDITOR) {
        this.LAST_EDITOR = LAST_EDITOR;
    }

    public Date getLAST_TIME() {
        return LAST_TIME;
    }

    public void setLAST_TIME(Date LAST_TIME) {
        this.LAST_TIME = LAST_TIME;
    }

    public String getIS_EMPLOYEE() {
        return IS_EMPLOYEE;
    }

    public void setIS_EMPLOYEE(String IS_EMPLOYEE) {
        this.IS_EMPLOYEE = IS_EMPLOYEE;
    }

    public String getSTAFF_POSITION() {
        return STAFF_POSITION;
    }

    public void setSTAFF_POSITION(String STAFF_POSITION) {
        this.STAFF_POSITION = STAFF_POSITION;
    }

    public List<SysDeptqqb> getChildren()
    {
        return children;
    }

    public void setChildren(List<SysDeptqqb> children)
    {
        this.children = children;
    }
        @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("STRU_ID", getSTRU_ID())
            .append("STRU_TYPE", getSTRU_TYPE())
            .append("ORGAN_ID", getORGAN_ID())
            .append("ORGAN_ALIAS", getORGAN_ALIAS())
            .append("PARENT_ID", getPARENT_ID())
            .append("PRINCIPAL_ID", getPRINCIPAL_ID())
            .append("CORPORATION_ID", getCORPORATION_ID())
            .append("STRU_LEVEL", getSTRU_LEVEL())
            .append("STRU_FID", getSTRU_FID())
            .append("STRU_SEQ", getSTRU_SEQ())
            .append("STRU_PATH", getSTRU_PATH())
            .append("STRU_ORDER", getSTRU_ORDER())
            .append("GLOBAL_ORDER", getGLOBAL_ORDER())
            .append("IS_LEAF", getIS_LEAF())
            .append("DEL_FLAG", getDEL_FLAG())
            .append("DEPARTMENT_ID", getDEPARTMENT_ID())
            .append("PERMISSION_STRU_ID", getPERMISSION_STRU_ID())
            .append("PROVINCE_CODE", getPROVINCE_CODE())
            .append("PARENT_ID", getPARENT_ID())
            .append("PRINCIPAL_ID", getPRINCIPAL_ID())
            .append("CORPORATION_ID", getCORPORATION_ID())
            .append("CREATOR", getCREATOR())
            .append("CREATE_TIME", getCREATE_TIME())
            .append("LAST_EDITOR", getLAST_EDITOR())
            .append("LAST_TIME", getLAST_TIME())
            .append("IS_EMPLOYEE", getIS_EMPLOYEE())
            .append("STAFF_POSITION", getSTAFF_POSITION())
            .toString();
    }
}
